include ./define.makefile

.PHONY:all

all:${PROTOCGEN_FILE_PATH}/module_NpcBase_bin

${PROTOCGEN_FILE_PATH}/module_NpcBase_bin:${PROTOCGEN_FILE_PATH}/NpcBase.proto.ds ${RESDB_EXCELMMO_PATH}/NpcBase.xlsx
	mkdir -p ${PROTOCGEN_FILE_PATH}
	rm -rf ${PROTOCGEN_FILE_PATH}/module_NpcBase_bin
	${NFEXCELPROCESS} --work="exceltobin" --patch=${GAME_VERSION_PATCH} --excel_json=${RESDB_EXCEL_JSON} --src=${RESDB_EXCELMMO_PATH}/NpcBase.xlsx  --proto_ds=${PROTOCGEN_FILE_PATH}/NpcBase.proto.ds --dst=${PROTOCGEN_FILE_PATH}/;
	${FILE_COPY_EXE} --work="filecopy_notexist" --src="${PROTOCGEN_FILE_PATH}/NpcBaseDescEx.h ${PROTOCGEN_FILE_PATH}/NpcBaseDescEx.cpp" --dst=${DESC_STORE_EX_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_FunctionNpc.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_FunctionNpc_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/FunctionNpcDesc.h ${PROTOCGEN_FILE_PATH}/FunctionNpcDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_ItemExchange.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_ItemExchange_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/ItemExchangeDesc.h ${PROTOCGEN_FILE_PATH}/ItemExchangeDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_NpcSpawn.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_NpcSpawn_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/NpcSpawnDesc.h ${PROTOCGEN_FILE_PATH}/NpcSpawnDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_NpcLocation.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_NpcLocation_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/NpcLocationDesc.h ${PROTOCGEN_FILE_PATH}/NpcLocationDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TransNpc.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TransNpc_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TransNpcDesc.h ${PROTOCGEN_FILE_PATH}/TransNpcDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TriggerNpc.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_TriggerNpc_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/TriggerNpcDesc.h ${PROTOCGEN_FILE_PATH}/TriggerNpcDesc.cpp" --dst=${DESC_STORE_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_ExchangeNpc.bin" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --src="${PROTOCGEN_FILE_PATH}/E_ExchangeNpc_debug.json" --dst=${GAME_DATA_PATH}/
	${FILE_COPY_EXE} --work="filecopy" --patch=${GAME_VERSION_PATCH} --src="${PROTOCGEN_FILE_PATH}/ExchangeNpcDesc.h ${PROTOCGEN_FILE_PATH}/ExchangeNpcDesc.cpp" --dst=${DESC_STORE_PATH}/
	touch ${PROTOCGEN_FILE_PATH}/module_NpcBase_bin
